﻿#include "Seq.h"

void test()
{
	SeqList qs;
	SeqListInit(&qs);
	SeqListPushBack(&qs, 1);
	SeqListPrint(&qs);
	SeqListPushBack(&qs, 3);
	SeqListPrint(&qs);
	SeqListPushBack(&qs, 5);
	SeqListPrint(&qs);
	SeqListPushFront(&qs, 2);
	SeqListPrint(&qs);
	SeqListPopFront(&qs);
	SeqListPrint(&qs);
	SeqListPopBack(&qs);
	SeqListPrint(&qs);
	int i;
	i = SeqListFind(&qs, 1);
	SeqListInsert(&qs, i, 7);
	SeqListPrint(&qs);
	i = SeqListFind(&qs, 1);
	SeqListInsert(&qs, i, 99);
	SeqListPrint(&qs);
	SeqListErase(&qs, i);
	SeqListPrint(&qs);
	SeqListDestroy(&qs);

}



int main()
{
	test();
	return 0;
}
